package com.zhuiyun.project.api.sysmenu.mapper;

import com.zhuiyun.project.api.sysmenu.entity.SysMenuEntity;
import com.zhuiyun.project.common.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SysMenuMapper extends BaseMapper<SysMenuEntity> {


    @Select("select b.* from  sys_menu b left join sys_user_power a on a.menu_id = b.id where a.user_id = #{id} ")
    List<SysMenuEntity> getMenuByUser(Integer id);
}
